<% extends 'card/weui_base.html' %>
<% block title %>提货结果<% endblock %>
<% block body %>
<style>
.weui_media_box .weui_media_title{white-space: normal}
</style>
<% if error %>
<div class="page-hd">
    <h1 class="page-hd-title">
        ${error}
    </h1>

    <p class="page-hd-desc"></p>
</div>
<div class="page-bd-15">
    <a href="/card/m" class="weui_btn weui_btn_primary" id="act">返回首页</a>
</div>
<% else %>

<div class="page-hd">
    <h1 class="page-hd-title">
        提货结果
    </h1>
    <p class="page-hd-desc"></p>
</div>

<div class="weui-form-preview">
    <div class="weui-form-preview-hd">
        <% for product in products_list %>
        <div class="weui_media_box weui_media_appmsg">
            <div class="weui_media_hd">
                <img class="weui_media_appmsg_thumb" src="/website/image/product.product/${product.id}/image" alt="">
            </div>
            <div class="weui_media_bd">
                <h4 class="weui_media_title">
                    ${product.product_name}×${product.product_qty|int}
                </h4>
                <p class="weui_media_desc">
                </p>
            </div>
        </div>
        <% endfor %>
    </div>
    <div class="weui-form-preview-bd">
        <p>
            <label class="weui-form-preview-label">收货人</label>
            <span class="weui-form-preview-value">${to_name}</span>
        </p>

        <p>
            <label class="weui-form-preview-label">手机号码</label>
            <span class="weui-form-preview-value">${mobile_number}</span>
        </p>

        <p>
            <label class="weui-form-preview-label">电话号码</label>
            <span class="weui-form-preview-value">${phone_number}</span>
        </p>

        <p>
            <label class="weui-form-preview-label">省市县</label>
            <span class="weui-form-preview-value">${province_name} ${city_name} ${county_name}</span>
        </p>

        <p>
            <label class="weui-form-preview-label">街道门牌地址</label>
            <span class="weui-form-preview-value">${address}</span>
        </p>
    </div>
    <div class="weui-form-preview-ft">
        <!--<a class="weui-form-preview-btn weui-form-preview-btn-primary" href="javascript:">操作</a>-->
    </div>
</div>
<% endif %>
<% endblock %>
